"use strict";
var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
    if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
        if (ar || !(i in from)) {
            if (!ar) ar = Array.prototype.slice.call(from, 0, i);
            ar[i] = from[i];
        }
    }
    return to.concat(ar || Array.prototype.slice.call(from));
};
Object.defineProperty(exports, "__esModule", { value: true });
var vue_1 = require("vue");
var vue_router_1 = require("vue-router");
var element_plus_1 = require("element-plus");
// 路由实例
var router = (0, vue_router_1.useRouter)();
// 状态管理
var loading = (0, vue_1.ref)(false);
var searchKeyword = (0, vue_1.ref)('');
var currentPage = (0, vue_1.ref)(1);
var pageSize = (0, vue_1.ref)(10);
var totalOrders = (0, vue_1.ref)(0);
var totalPages = (0, vue_1.ref)(0);
var dialogVisible = (0, vue_1.ref)(false);
var detailVisible = (0, vue_1.ref)(false);
var deleteConfirmVisible = (0, vue_1.ref)(false);
var isEditMode = (0, vue_1.ref)(false);
var currentOrder = (0, vue_1.ref)({});
var deleteOrderId = (0, vue_1.ref)(null);
// 表单引用（直接定义，与模板ref同名）
var formRef = (0, vue_1.ref)(null);
// 表单数据
var formData = (0, vue_1.reactive)({
    id: null,
    time: '',
    orderNo: '',
    warehouse: '',
    operator: '',
    status: '已完成',
    remark: '',
    productDetails: [
        { productName: '', productNo: '', quantity: 1 }
    ]
});
// 表单验证规则
var formRules = {
    time: [{ required: true, message: '请选择入库时间', trigger: 'blur' }],
    orderNo: [{ required: true, message: '请输入入库单编号', trigger: 'blur' }],
    warehouse: [{ required: true, message: '请选择仓库', trigger: 'blur' }],
    operator: [{ required: true, message: '请输入操作人', trigger: 'blur' }],
    productDetails: [{
            validator: function (rule, value, callback) {
                if (value.length === 0) {
                    callback(new Error('至少添加一个产品'));
                }
                else {
                    callback();
                }
            },
            trigger: 'blur'
        }]
};
// 仓库下拉选项
var warehouseOptions = [
    { label: '001仓库', value: '001' },
    { label: '002仓库', value: '002' },
    { label: '003仓库', value: '003' },
    { label: '004仓库', value: '004' }
];
// 入库单数据
var storageOrders = (0, vue_1.reactive)([
    {
        id: 1,
        time: '2022.05.22',
        orderNo: 'PD-20220517-00001',
        warehouse: '001',
        operator: '陈晨',
        status: '已完成',
        remark: '1号',
        productDetails: [
            { productName: '丝芙兰精华', productNo: 'SP001', quantity: 10 },
            { productName: '兰蔻粉水', productNo: 'LC002', quantity: 5 }
        ]
    },
    {
        id: 2,
        time: '2022.05.22',
        orderNo: 'PD-20220517-00001',
        warehouse: '002',
        operator: '陈光',
        status: '已完成',
        remark: '2号',
        productDetails: [
            { productName: '雅诗兰黛小棕瓶', productNo: 'YS003', quantity: 8 },
            { productName: 'SK-II神仙水', productNo: 'SK004', quantity: 3 }
        ]
    },
    {
        id: 3,
        time: '2022.05.22',
        orderNo: 'PD-20220517-00001',
        warehouse: '003',
        operator: '陈鹿',
        status: '已完成',
        remark: '3号',
        productDetails: [
            { productName: '资生堂红腰子', productNo: 'ZS005', quantity: 6 },
            { productName: '海蓝之谜面霜', productNo: 'HL006', quantity: 2 }
        ]
    },
    {
        id: 4,
        time: '2022.05.22',
        orderNo: 'PD-20220517-00001',
        warehouse: '004',
        operator: '陈晨',
        status: '已完成',
        remark: '4号',
        productDetails: [
            { productName: '娇兰复原蜜', productNo: 'JL007', quantity: 7 },
            { productName: '纪梵希散粉', productNo: 'JF008', quantity: 4 }
        ]
    }
]);
// 过滤后的入库单（分页+搜索）
var filteredOrders = (0, vue_1.computed)(function () {
    // 搜索过滤
    var result = storageOrders.filter(function (order) {
        var keyword = searchKeyword.value.toLowerCase();
        return (order.orderNo.toLowerCase().includes(keyword) ||
            order.warehouse.toLowerCase().includes(keyword) ||
            order.operator.toLowerCase().includes(keyword) ||
            order.status.toLowerCase().includes(keyword));
    });
    // 更新总数
    totalOrders.value = result.length;
    totalPages.value = Math.ceil(totalOrders.value / pageSize.value);
    // 分页处理
    var startIndex = (currentPage.value - 1) * pageSize.value;
    return result.slice(startIndex, startIndex + pageSize.value);
});
// 生命周期：初始化
(0, vue_1.onMounted)(function () {
    // 模拟加载数据
    loading.value = true;
    setTimeout(function () {
        loading.value = false;
    }, 500);
});
// 分页事件
var handleSizeChange = function (val) {
    pageSize.value = val;
    currentPage.value = 1; // 重置到第一页
};
var handleCurrentChange = function (val) {
    currentPage.value = val;
};
// 搜索事件
var handleSearch = function () {
    currentPage.value = 1; // 搜索后重置到第一页
};
// 返回事件
var handleBack = function () {
    router.back();
};
// 新增入库单
var handleAddOrder = function () {
    isEditMode.value = false;
    // 重置表单
    Object.assign(formData, {
        id: null,
        time: '',
        orderNo: '',
        warehouse: '',
        operator: '',
        status: '已完成',
        remark: '',
        productDetails: [
            { productName: '', productNo: '', quantity: 1 }
        ]
    });
    dialogVisible.value = true;
};
// 编辑入库单
var handleEditOrder = function (row) {
    isEditMode.value = true;
    // 复制数据到表单
    Object.assign(formData, __assign({}, row));
    dialogVisible.value = true;
};
// 查看明细
var handleViewDetail = function (row) {
    currentOrder.value = __assign({}, row);
    detailVisible.value = true;
};
// 删除入库单（显示确认）
var handleDeleteOrder = function (id) {
    deleteOrderId.value = id;
    deleteConfirmVisible.value = true;
};
// 确认删除
var confirmDelete = function () {
    loading.value = true;
    setTimeout(function () {
        var index = storageOrders.findIndex(function (order) { return order.id === deleteOrderId.value; });
        if (index !== -1) {
            storageOrders.splice(index, 1);
        }
        deleteConfirmVisible.value = false;
        loading.value = false;
        element_plus_1.ElMessage.success('入库单已删除');
    }, 500);
};
// 新增产品
var addProduct = function () {
    formData.productDetails.push({ productName: '', productNo: '', quantity: 1 });
};
// 删除产品
var removeProduct = function (index) {
    if (formData.productDetails.length > 1) {
        formData.productDetails.splice(index, 1);
    }
    else {
        element_plus_1.ElMessage.warning('至少保留一个产品');
    }
};
// 保存入库单
var handleSaveOrder = function () {
    if (!formRef.value)
        return;
    formRef.value.validate(function (valid) {
        if (valid) {
            loading.value = true;
            setTimeout(function () {
                if (isEditMode.value) {
                    // 编辑模式：更新现有数据
                    var index = storageOrders.findIndex(function (order) { return order.id === formData.id; });
                    if (index !== -1) {
                        storageOrders[index] = __assign({}, formData);
                    }
                    element_plus_1.ElMessage.success('入库单已更新');
                }
                else {
                    // 新增模式：生成新数据
                    var newId = Math.max.apply(Math, __spreadArray(__spreadArray([], storageOrders.map(function (o) { return o.id; }), false), [0], false)) + 1;
                    var newOrder = __assign(__assign({}, formData), { id: newId, orderNo: "PD-".concat(new Date().getFullYear()).concat((new Date().getMonth() + 1).toString().padStart(2, '0')).concat(new Date().getDate().toString().padStart(2, '0'), "-").concat(newId.toString().padStart(4, '0')), time: new Date().toISOString().split('T')[0].replace(/-/g, '.') });
                    storageOrders.unshift(newOrder);
                    element_plus_1.ElMessage.success('入库单已创建');
                }
                dialogVisible.value = false;
                loading.value = false;
            }, 500);
        }
    });
};
// 关闭弹窗
var handleDialogClose = function () {
    if (formRef.value) {
        formRef.value.resetFields();
    }
    dialogVisible.value = false;
};
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
var __VLS_ctx = __assign(__assign({}, {}), {});
var __VLS_elements;
var __VLS_components;
var __VLS_directives;
/** @type {__VLS_StyleScopedClasses['page-header']} */ ;
/** @type {__VLS_StyleScopedClasses['add-product-btn']} */ ;
/** @type {__VLS_StyleScopedClasses['search-action-bar']} */ ;
/** @type {__VLS_StyleScopedClasses['search-input']} */ ;
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "storage-order-page" }));
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "page-header" }));
__VLS_asFunctionalElement(__VLS_elements.h2, __VLS_elements.h2)({});
var __VLS_0 = {}.ElButton;
/** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
// @ts-ignore
ElButton;
// @ts-ignore
var __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0(__assign({ 'onClick': {} }, { type: "text" })));
var __VLS_2 = __VLS_1.apply(void 0, __spreadArray([__assign({ 'onClick': {} }, { type: "text" })], __VLS_functionalComponentArgsRest(__VLS_1), false));
var __VLS_4;
var __VLS_5;
var __VLS_6 = ({ click: {} },
    { onClick: (__VLS_ctx.handleBack) });
var __VLS_7 = __VLS_3.slots.default;
// @ts-ignore
[handleBack,];
var __VLS_3;
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "search-action-bar" }));
var __VLS_8 = {}.ElInput;
/** @type {[typeof __VLS_components.ElInput, typeof __VLS_components.elInput, ]} */ ;
// @ts-ignore
ElInput;
// @ts-ignore
var __VLS_9 = __VLS_asFunctionalComponent(__VLS_8, new __VLS_8(__assign(__assign({ modelValue: (__VLS_ctx.searchKeyword), placeholder: "请输入关键字查询" }, { class: "search-input" }), { clearable: true })));
var __VLS_10 = __VLS_9.apply(void 0, __spreadArray([__assign(__assign({ modelValue: (__VLS_ctx.searchKeyword), placeholder: "请输入关键字查询" }, { class: "search-input" }), { clearable: true })], __VLS_functionalComponentArgsRest(__VLS_9), false));
// @ts-ignore
[searchKeyword,];
var __VLS_13 = {}.ElButton;
/** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
// @ts-ignore
ElButton;
// @ts-ignore
var __VLS_14 = __VLS_asFunctionalComponent(__VLS_13, new __VLS_13(__assign({ 'onClick': {} }, { type: "primary" })));
var __VLS_15 = __VLS_14.apply(void 0, __spreadArray([__assign({ 'onClick': {} }, { type: "primary" })], __VLS_functionalComponentArgsRest(__VLS_14), false));
var __VLS_17;
var __VLS_18;
var __VLS_19 = ({ click: {} },
    { onClick: (__VLS_ctx.handleSearch) });
var __VLS_20 = __VLS_16.slots.default;
// @ts-ignore
[handleSearch,];
var __VLS_16;
var __VLS_21 = {}.ElButton;
/** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
// @ts-ignore
ElButton;
// @ts-ignore
var __VLS_22 = __VLS_asFunctionalComponent(__VLS_21, new __VLS_21(__assign({ 'onClick': {} }, { type: "success" })));
var __VLS_23 = __VLS_22.apply(void 0, __spreadArray([__assign({ 'onClick': {} }, { type: "success" })], __VLS_functionalComponentArgsRest(__VLS_22), false));
var __VLS_25;
var __VLS_26;
var __VLS_27 = ({ click: {} },
    { onClick: (__VLS_ctx.handleAddOrder) });
var __VLS_28 = __VLS_24.slots.default;
// @ts-ignore
[handleAddOrder,];
var __VLS_24;
var __VLS_29 = {}.ElTable;
/** @type {[typeof __VLS_components.ElTable, typeof __VLS_components.elTable, typeof __VLS_components.ElTable, typeof __VLS_components.elTable, ]} */ ;
// @ts-ignore
ElTable;
// @ts-ignore
var __VLS_30 = __VLS_asFunctionalComponent(__VLS_29, new __VLS_29(__assign({ data: (__VLS_ctx.filteredOrders), border: true, stripe: true }, { class: "order-table" })));
var __VLS_31 = __VLS_30.apply(void 0, __spreadArray([__assign({ data: (__VLS_ctx.filteredOrders), border: true, stripe: true }, { class: "order-table" })], __VLS_functionalComponentArgsRest(__VLS_30), false));
__VLS_asFunctionalDirective(__VLS_directives.vLoading)(null, __assign(__assign({}, __VLS_directiveBindingRestFields), { value: (__VLS_ctx.loading) }), null, null);
var __VLS_33 = __VLS_32.slots.default;
// @ts-ignore
[filteredOrders, vLoading, loading,];
var __VLS_34 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_35 = __VLS_asFunctionalComponent(__VLS_34, new __VLS_34({
    prop: "time",
    label: "时间",
    sortable: true,
}));
var __VLS_36 = __VLS_35.apply(void 0, __spreadArray([{
        prop: "time",
        label: "时间",
        sortable: true,
    }], __VLS_functionalComponentArgsRest(__VLS_35), false));
var __VLS_39 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_40 = __VLS_asFunctionalComponent(__VLS_39, new __VLS_39({
    prop: "orderNo",
    label: "入库单编号",
}));
var __VLS_41 = __VLS_40.apply(void 0, __spreadArray([{
        prop: "orderNo",
        label: "入库单编号",
    }], __VLS_functionalComponentArgsRest(__VLS_40), false));
var __VLS_44 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_45 = __VLS_asFunctionalComponent(__VLS_44, new __VLS_44({
    prop: "warehouse",
    label: "仓库",
}));
var __VLS_46 = __VLS_45.apply(void 0, __spreadArray([{
        prop: "warehouse",
        label: "仓库",
    }], __VLS_functionalComponentArgsRest(__VLS_45), false));
var __VLS_49 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_50 = __VLS_asFunctionalComponent(__VLS_49, new __VLS_49({
    prop: "operator",
    label: "操作人",
}));
var __VLS_51 = __VLS_50.apply(void 0, __spreadArray([{
        prop: "operator",
        label: "操作人",
    }], __VLS_functionalComponentArgsRest(__VLS_50), false));
var __VLS_54 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_55 = __VLS_asFunctionalComponent(__VLS_54, new __VLS_54({
    prop: "status",
    label: "入库状态",
}));
var __VLS_56 = __VLS_55.apply(void 0, __spreadArray([{
        prop: "status",
        label: "入库状态",
    }], __VLS_functionalComponentArgsRest(__VLS_55), false));
var __VLS_58 = __VLS_57.slots.default;
{
    var __VLS_59 = __VLS_57.slots.default;
    var scope = __VLS_getSlotParameters(__VLS_59)[0];
    var __VLS_60 = {}.ElTag;
    /** @type {[typeof __VLS_components.ElTag, typeof __VLS_components.elTag, typeof __VLS_components.ElTag, typeof __VLS_components.elTag, ]} */ ;
    // @ts-ignore
    ElTag;
    // @ts-ignore
    var __VLS_61 = __VLS_asFunctionalComponent(__VLS_60, new __VLS_60({
        type: "success",
    }));
    var __VLS_62 = __VLS_61.apply(void 0, __spreadArray([{
            type: "success",
        }], __VLS_functionalComponentArgsRest(__VLS_61), false));
    var __VLS_64 = __VLS_63.slots.default;
    (scope.row.status);
    var __VLS_63;
}
var __VLS_57;
var __VLS_65 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_66 = __VLS_asFunctionalComponent(__VLS_65, new __VLS_65({
    prop: "remark",
    label: "备注",
}));
var __VLS_67 = __VLS_66.apply(void 0, __spreadArray([{
        prop: "remark",
        label: "备注",
    }], __VLS_functionalComponentArgsRest(__VLS_66), false));
var __VLS_70 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_71 = __VLS_asFunctionalComponent(__VLS_70, new __VLS_70({
    label: "操作",
    fixed: "right",
}));
var __VLS_72 = __VLS_71.apply(void 0, __spreadArray([{
        label: "操作",
        fixed: "right",
    }], __VLS_functionalComponentArgsRest(__VLS_71), false));
var __VLS_74 = __VLS_73.slots.default;
{
    var __VLS_75 = __VLS_73.slots.default;
    var scope_1 = __VLS_getSlotParameters(__VLS_75)[0];
    var __VLS_76 = {}.ElButton;
    /** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
    // @ts-ignore
    ElButton;
    // @ts-ignore
    var __VLS_77 = __VLS_asFunctionalComponent(__VLS_76, new __VLS_76(__assign({ 'onClick': {} }, { type: "primary", size: "small" })));
    var __VLS_78 = __VLS_77.apply(void 0, __spreadArray([__assign({ 'onClick': {} }, { type: "primary", size: "small" })], __VLS_functionalComponentArgsRest(__VLS_77), false));
    var __VLS_80 = void 0;
    var __VLS_81 = void 0;
    var __VLS_82 = ({ click: {} },
        { onClick: function () {
                var _a = [];
                for (var _i = 0; _i < arguments.length; _i++) {
                    _a[_i] = arguments[_i];
                }
                var $event = _a[0];
                __VLS_ctx.handleViewDetail(scope_1.row);
                // @ts-ignore
                [handleViewDetail,];
            } });
    var __VLS_83 = __VLS_79.slots.default;
    var __VLS_79;
    if (scope_1.row.status !== '已完成') {
        var __VLS_84 = {}.ElButton;
        /** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
        // @ts-ignore
        ElButton;
        // @ts-ignore
        var __VLS_85 = __VLS_asFunctionalComponent(__VLS_84, new __VLS_84(__assign({ 'onClick': {} }, { type: "warning", size: "small" })));
        var __VLS_86 = __VLS_85.apply(void 0, __spreadArray([__assign({ 'onClick': {} }, { type: "warning", size: "small" })], __VLS_functionalComponentArgsRest(__VLS_85), false));
        var __VLS_88 = void 0;
        var __VLS_89 = void 0;
        var __VLS_90 = ({ click: {} },
            { onClick: function () {
                    var _a = [];
                    for (var _i = 0; _i < arguments.length; _i++) {
                        _a[_i] = arguments[_i];
                    }
                    var $event = _a[0];
                    if (!(scope_1.row.status !== '已完成'))
                        return;
                    __VLS_ctx.handleEditOrder(scope_1.row);
                    // @ts-ignore
                    [handleEditOrder,];
                } });
        var __VLS_91 = __VLS_87.slots.default;
        var __VLS_87;
    }
    if (scope_1.row.status !== '已完成') {
        var __VLS_92 = {}.ElButton;
        /** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
        // @ts-ignore
        ElButton;
        // @ts-ignore
        var __VLS_93 = __VLS_asFunctionalComponent(__VLS_92, new __VLS_92(__assign({ 'onClick': {} }, { type: "danger", size: "small" })));
        var __VLS_94 = __VLS_93.apply(void 0, __spreadArray([__assign({ 'onClick': {} }, { type: "danger", size: "small" })], __VLS_functionalComponentArgsRest(__VLS_93), false));
        var __VLS_96 = void 0;
        var __VLS_97 = void 0;
        var __VLS_98 = ({ click: {} },
            { onClick: function () {
                    var _a = [];
                    for (var _i = 0; _i < arguments.length; _i++) {
                        _a[_i] = arguments[_i];
                    }
                    var $event = _a[0];
                    if (!(scope_1.row.status !== '已完成'))
                        return;
                    __VLS_ctx.handleDeleteOrder(scope_1.row.id);
                    // @ts-ignore
                    [handleDeleteOrder,];
                } });
        var __VLS_99 = __VLS_95.slots.default;
        var __VLS_95;
    }
}
var __VLS_73;
var __VLS_32;
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "pagination" }));
__VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)(__assign({ class: "total-info" }));
(__VLS_ctx.totalOrders);
(__VLS_ctx.totalPages);
// @ts-ignore
[totalOrders, totalPages,];
var __VLS_100 = {}.ElPagination;
/** @type {[typeof __VLS_components.ElPagination, typeof __VLS_components.elPagination, ]} */ ;
// @ts-ignore
ElPagination;
// @ts-ignore
var __VLS_101 = __VLS_asFunctionalComponent(__VLS_100, new __VLS_100(__assign(__assign({ 'onSizeChange': {} }, { 'onCurrentChange': {} }), { currentPage: (__VLS_ctx.currentPage), pageSize: (__VLS_ctx.pageSize), pageSizes: ([10, 20, 50]), total: (__VLS_ctx.totalOrders), layout: "prev, pager, next, jumper, sizes" })));
var __VLS_102 = __VLS_101.apply(void 0, __spreadArray([__assign(__assign({ 'onSizeChange': {} }, { 'onCurrentChange': {} }), { currentPage: (__VLS_ctx.currentPage), pageSize: (__VLS_ctx.pageSize), pageSizes: ([10, 20, 50]), total: (__VLS_ctx.totalOrders), layout: "prev, pager, next, jumper, sizes" })], __VLS_functionalComponentArgsRest(__VLS_101), false));
var __VLS_104;
var __VLS_105;
var __VLS_106 = ({ sizeChange: {} },
    { onSizeChange: (__VLS_ctx.handleSizeChange) });
var __VLS_107 = ({ currentChange: {} },
    { onCurrentChange: (__VLS_ctx.handleCurrentChange) });
// @ts-ignore
[totalOrders, currentPage, pageSize, handleSizeChange, handleCurrentChange,];
var __VLS_103;
var __VLS_109 = {}.ElDialog;
/** @type {[typeof __VLS_components.ElDialog, typeof __VLS_components.elDialog, typeof __VLS_components.ElDialog, typeof __VLS_components.elDialog, ]} */ ;
// @ts-ignore
ElDialog;
// @ts-ignore
var __VLS_110 = __VLS_asFunctionalComponent(__VLS_109, new __VLS_109({
    modelValue: (__VLS_ctx.dialogVisible),
    title: (__VLS_ctx.isEditMode ? '编辑入库单' : '新增入库单'),
    width: "800px",
    beforeClose: (__VLS_ctx.handleDialogClose),
}));
var __VLS_111 = __VLS_110.apply(void 0, __spreadArray([{
        modelValue: (__VLS_ctx.dialogVisible),
        title: (__VLS_ctx.isEditMode ? '编辑入库单' : '新增入库单'),
        width: "800px",
        beforeClose: (__VLS_ctx.handleDialogClose),
    }], __VLS_functionalComponentArgsRest(__VLS_110), false));
var __VLS_113 = __VLS_112.slots.default;
// @ts-ignore
[dialogVisible, isEditMode, handleDialogClose,];
var __VLS_114 = {}.ElForm;
/** @type {[typeof __VLS_components.ElForm, typeof __VLS_components.elForm, typeof __VLS_components.ElForm, typeof __VLS_components.elForm, ]} */ ;
// @ts-ignore
ElForm;
// @ts-ignore
var __VLS_115 = __VLS_asFunctionalComponent(__VLS_114, new __VLS_114(__assign({ model: (__VLS_ctx.formData), ref: "formRef", rules: (__VLS_ctx.formRules), labelWidth: "120px" }, { class: "order-form" })));
var __VLS_116 = __VLS_115.apply(void 0, __spreadArray([__assign({ model: (__VLS_ctx.formData), ref: "formRef", rules: (__VLS_ctx.formRules), labelWidth: "120px" }, { class: "order-form" })], __VLS_functionalComponentArgsRest(__VLS_115), false));
/** @type {typeof __VLS_ctx.formRef} */ ;
var __VLS_118 = {};
var __VLS_120 = __VLS_117.slots.default;
// @ts-ignore
[formData, formRules, formRef,];
var __VLS_121 = {}.ElRow;
/** @type {[typeof __VLS_components.ElRow, typeof __VLS_components.elRow, typeof __VLS_components.ElRow, typeof __VLS_components.elRow, ]} */ ;
// @ts-ignore
ElRow;
// @ts-ignore
var __VLS_122 = __VLS_asFunctionalComponent(__VLS_121, new __VLS_121({
    gutter: (20),
}));
var __VLS_123 = __VLS_122.apply(void 0, __spreadArray([{
        gutter: (20),
    }], __VLS_functionalComponentArgsRest(__VLS_122), false));
var __VLS_125 = __VLS_124.slots.default;
var __VLS_126 = {}.ElCol;
/** @type {[typeof __VLS_components.ElCol, typeof __VLS_components.elCol, typeof __VLS_components.ElCol, typeof __VLS_components.elCol, ]} */ ;
// @ts-ignore
ElCol;
// @ts-ignore
var __VLS_127 = __VLS_asFunctionalComponent(__VLS_126, new __VLS_126({
    span: (12),
}));
var __VLS_128 = __VLS_127.apply(void 0, __spreadArray([{
        span: (12),
    }], __VLS_functionalComponentArgsRest(__VLS_127), false));
var __VLS_130 = __VLS_129.slots.default;
var __VLS_131 = {}.ElFormItem;
/** @type {[typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, ]} */ ;
// @ts-ignore
ElFormItem;
// @ts-ignore
var __VLS_132 = __VLS_asFunctionalComponent(__VLS_131, new __VLS_131({
    label: "入库时间",
    prop: "time",
}));
var __VLS_133 = __VLS_132.apply(void 0, __spreadArray([{
        label: "入库时间",
        prop: "time",
    }], __VLS_functionalComponentArgsRest(__VLS_132), false));
var __VLS_135 = __VLS_134.slots.default;
var __VLS_136 = {}.ElDatePicker;
/** @type {[typeof __VLS_components.ElDatePicker, typeof __VLS_components.elDatePicker, ]} */ ;
// @ts-ignore
ElDatePicker;
// @ts-ignore
var __VLS_137 = __VLS_asFunctionalComponent(__VLS_136, new __VLS_136(__assign({ modelValue: (__VLS_ctx.formData.time), type: "date", placeholder: "选择入库时间" }, { style: {} })));
var __VLS_138 = __VLS_137.apply(void 0, __spreadArray([__assign({ modelValue: (__VLS_ctx.formData.time), type: "date", placeholder: "选择入库时间" }, { style: {} })], __VLS_functionalComponentArgsRest(__VLS_137), false));
// @ts-ignore
[formData,];
var __VLS_134;
var __VLS_129;
var __VLS_141 = {}.ElCol;
/** @type {[typeof __VLS_components.ElCol, typeof __VLS_components.elCol, typeof __VLS_components.ElCol, typeof __VLS_components.elCol, ]} */ ;
// @ts-ignore
ElCol;
// @ts-ignore
var __VLS_142 = __VLS_asFunctionalComponent(__VLS_141, new __VLS_141({
    span: (12),
}));
var __VLS_143 = __VLS_142.apply(void 0, __spreadArray([{
        span: (12),
    }], __VLS_functionalComponentArgsRest(__VLS_142), false));
var __VLS_145 = __VLS_144.slots.default;
var __VLS_146 = {}.ElFormItem;
/** @type {[typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, ]} */ ;
// @ts-ignore
ElFormItem;
// @ts-ignore
var __VLS_147 = __VLS_asFunctionalComponent(__VLS_146, new __VLS_146({
    label: "入库单编号",
    prop: "orderNo",
}));
var __VLS_148 = __VLS_147.apply(void 0, __spreadArray([{
        label: "入库单编号",
        prop: "orderNo",
    }], __VLS_functionalComponentArgsRest(__VLS_147), false));
var __VLS_150 = __VLS_149.slots.default;
var __VLS_151 = {}.ElInput;
/** @type {[typeof __VLS_components.ElInput, typeof __VLS_components.elInput, ]} */ ;
// @ts-ignore
ElInput;
// @ts-ignore
var __VLS_152 = __VLS_asFunctionalComponent(__VLS_151, new __VLS_151({
    modelValue: (__VLS_ctx.formData.orderNo),
    placeholder: "输入入库单编号",
    disabled: (__VLS_ctx.isEditMode),
}));
var __VLS_153 = __VLS_152.apply(void 0, __spreadArray([{
        modelValue: (__VLS_ctx.formData.orderNo),
        placeholder: "输入入库单编号",
        disabled: (__VLS_ctx.isEditMode),
    }], __VLS_functionalComponentArgsRest(__VLS_152), false));
// @ts-ignore
[isEditMode, formData,];
var __VLS_149;
var __VLS_144;
var __VLS_124;
var __VLS_156 = {}.ElRow;
/** @type {[typeof __VLS_components.ElRow, typeof __VLS_components.elRow, typeof __VLS_components.ElRow, typeof __VLS_components.elRow, ]} */ ;
// @ts-ignore
ElRow;
// @ts-ignore
var __VLS_157 = __VLS_asFunctionalComponent(__VLS_156, new __VLS_156({
    gutter: (20),
}));
var __VLS_158 = __VLS_157.apply(void 0, __spreadArray([{
        gutter: (20),
    }], __VLS_functionalComponentArgsRest(__VLS_157), false));
var __VLS_160 = __VLS_159.slots.default;
var __VLS_161 = {}.ElCol;
/** @type {[typeof __VLS_components.ElCol, typeof __VLS_components.elCol, typeof __VLS_components.ElCol, typeof __VLS_components.elCol, ]} */ ;
// @ts-ignore
ElCol;
// @ts-ignore
var __VLS_162 = __VLS_asFunctionalComponent(__VLS_161, new __VLS_161({
    span: (12),
}));
var __VLS_163 = __VLS_162.apply(void 0, __spreadArray([{
        span: (12),
    }], __VLS_functionalComponentArgsRest(__VLS_162), false));
var __VLS_165 = __VLS_164.slots.default;
var __VLS_166 = {}.ElFormItem;
/** @type {[typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, ]} */ ;
// @ts-ignore
ElFormItem;
// @ts-ignore
var __VLS_167 = __VLS_asFunctionalComponent(__VLS_166, new __VLS_166({
    label: "仓库",
    prop: "warehouse",
}));
var __VLS_168 = __VLS_167.apply(void 0, __spreadArray([{
        label: "仓库",
        prop: "warehouse",
    }], __VLS_functionalComponentArgsRest(__VLS_167), false));
var __VLS_170 = __VLS_169.slots.default;
var __VLS_171 = {}.ElSelect;
/** @type {[typeof __VLS_components.ElSelect, typeof __VLS_components.elSelect, typeof __VLS_components.ElSelect, typeof __VLS_components.elSelect, ]} */ ;
// @ts-ignore
ElSelect;
// @ts-ignore
var __VLS_172 = __VLS_asFunctionalComponent(__VLS_171, new __VLS_171({
    modelValue: (__VLS_ctx.formData.warehouse),
    placeholder: "选择仓库",
    clearable: true,
}));
var __VLS_173 = __VLS_172.apply(void 0, __spreadArray([{
        modelValue: (__VLS_ctx.formData.warehouse),
        placeholder: "选择仓库",
        clearable: true,
    }], __VLS_functionalComponentArgsRest(__VLS_172), false));
var __VLS_175 = __VLS_174.slots.default;
// @ts-ignore
[formData,];
for (var _i = 0, _a = __VLS_getVForSourceType((__VLS_ctx.warehouseOptions)); _i < _a.length; _i++) {
    var item = _a[_i][0];
    // @ts-ignore
    [warehouseOptions,];
    var __VLS_176 = {}.ElOption;
    /** @type {[typeof __VLS_components.ElOption, typeof __VLS_components.elOption, ]} */ ;
    // @ts-ignore
    ElOption;
    // @ts-ignore
    var __VLS_177 = __VLS_asFunctionalComponent(__VLS_176, new __VLS_176({
        key: (item.value),
        label: (item.label),
        value: (item.value),
    }));
    var __VLS_178 = __VLS_177.apply(void 0, __spreadArray([{
            key: (item.value),
            label: (item.label),
            value: (item.value),
        }], __VLS_functionalComponentArgsRest(__VLS_177), false));
}
var __VLS_174;
var __VLS_169;
var __VLS_164;
var __VLS_181 = {}.ElCol;
/** @type {[typeof __VLS_components.ElCol, typeof __VLS_components.elCol, typeof __VLS_components.ElCol, typeof __VLS_components.elCol, ]} */ ;
// @ts-ignore
ElCol;
// @ts-ignore
var __VLS_182 = __VLS_asFunctionalComponent(__VLS_181, new __VLS_181({
    span: (12),
}));
var __VLS_183 = __VLS_182.apply(void 0, __spreadArray([{
        span: (12),
    }], __VLS_functionalComponentArgsRest(__VLS_182), false));
var __VLS_185 = __VLS_184.slots.default;
var __VLS_186 = {}.ElFormItem;
/** @type {[typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, ]} */ ;
// @ts-ignore
ElFormItem;
// @ts-ignore
var __VLS_187 = __VLS_asFunctionalComponent(__VLS_186, new __VLS_186({
    label: "操作人",
    prop: "operator",
}));
var __VLS_188 = __VLS_187.apply(void 0, __spreadArray([{
        label: "操作人",
        prop: "operator",
    }], __VLS_functionalComponentArgsRest(__VLS_187), false));
var __VLS_190 = __VLS_189.slots.default;
var __VLS_191 = {}.ElInput;
/** @type {[typeof __VLS_components.ElInput, typeof __VLS_components.elInput, ]} */ ;
// @ts-ignore
ElInput;
// @ts-ignore
var __VLS_192 = __VLS_asFunctionalComponent(__VLS_191, new __VLS_191({
    modelValue: (__VLS_ctx.formData.operator),
    placeholder: "输入操作人",
}));
var __VLS_193 = __VLS_192.apply(void 0, __spreadArray([{
        modelValue: (__VLS_ctx.formData.operator),
        placeholder: "输入操作人",
    }], __VLS_functionalComponentArgsRest(__VLS_192), false));
// @ts-ignore
[formData,];
var __VLS_189;
var __VLS_184;
var __VLS_159;
var __VLS_196 = {}.ElRow;
/** @type {[typeof __VLS_components.ElRow, typeof __VLS_components.elRow, typeof __VLS_components.ElRow, typeof __VLS_components.elRow, ]} */ ;
// @ts-ignore
ElRow;
// @ts-ignore
var __VLS_197 = __VLS_asFunctionalComponent(__VLS_196, new __VLS_196({
    gutter: (20),
}));
var __VLS_198 = __VLS_197.apply(void 0, __spreadArray([{
        gutter: (20),
    }], __VLS_functionalComponentArgsRest(__VLS_197), false));
var __VLS_200 = __VLS_199.slots.default;
var __VLS_201 = {}.ElCol;
/** @type {[typeof __VLS_components.ElCol, typeof __VLS_components.elCol, typeof __VLS_components.ElCol, typeof __VLS_components.elCol, ]} */ ;
// @ts-ignore
ElCol;
// @ts-ignore
var __VLS_202 = __VLS_asFunctionalComponent(__VLS_201, new __VLS_201({
    span: (12),
}));
var __VLS_203 = __VLS_202.apply(void 0, __spreadArray([{
        span: (12),
    }], __VLS_functionalComponentArgsRest(__VLS_202), false));
var __VLS_205 = __VLS_204.slots.default;
var __VLS_206 = {}.ElFormItem;
/** @type {[typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, ]} */ ;
// @ts-ignore
ElFormItem;
// @ts-ignore
var __VLS_207 = __VLS_asFunctionalComponent(__VLS_206, new __VLS_206({
    label: "入库状态",
    prop: "status",
}));
var __VLS_208 = __VLS_207.apply(void 0, __spreadArray([{
        label: "入库状态",
        prop: "status",
    }], __VLS_functionalComponentArgsRest(__VLS_207), false));
var __VLS_210 = __VLS_209.slots.default;
var __VLS_211 = {}.ElSelect;
/** @type {[typeof __VLS_components.ElSelect, typeof __VLS_components.elSelect, typeof __VLS_components.ElSelect, typeof __VLS_components.elSelect, ]} */ ;
// @ts-ignore
ElSelect;
// @ts-ignore
var __VLS_212 = __VLS_asFunctionalComponent(__VLS_211, new __VLS_211({
    modelValue: (__VLS_ctx.formData.status),
    placeholder: "选择入库状态",
}));
var __VLS_213 = __VLS_212.apply(void 0, __spreadArray([{
        modelValue: (__VLS_ctx.formData.status),
        placeholder: "选择入库状态",
    }], __VLS_functionalComponentArgsRest(__VLS_212), false));
var __VLS_215 = __VLS_214.slots.default;
// @ts-ignore
[formData,];
var __VLS_216 = {}.ElOption;
/** @type {[typeof __VLS_components.ElOption, typeof __VLS_components.elOption, ]} */ ;
// @ts-ignore
ElOption;
// @ts-ignore
var __VLS_217 = __VLS_asFunctionalComponent(__VLS_216, new __VLS_216({
    label: "已完成",
    value: "已完成",
}));
var __VLS_218 = __VLS_217.apply(void 0, __spreadArray([{
        label: "已完成",
        value: "已完成",
    }], __VLS_functionalComponentArgsRest(__VLS_217), false));
var __VLS_221 = {}.ElOption;
/** @type {[typeof __VLS_components.ElOption, typeof __VLS_components.elOption, ]} */ ;
// @ts-ignore
ElOption;
// @ts-ignore
var __VLS_222 = __VLS_asFunctionalComponent(__VLS_221, new __VLS_221({
    label: "进行中",
    value: "进行中",
}));
var __VLS_223 = __VLS_222.apply(void 0, __spreadArray([{
        label: "进行中",
        value: "进行中",
    }], __VLS_functionalComponentArgsRest(__VLS_222), false));
var __VLS_214;
var __VLS_209;
var __VLS_204;
var __VLS_226 = {}.ElCol;
/** @type {[typeof __VLS_components.ElCol, typeof __VLS_components.elCol, typeof __VLS_components.ElCol, typeof __VLS_components.elCol, ]} */ ;
// @ts-ignore
ElCol;
// @ts-ignore
var __VLS_227 = __VLS_asFunctionalComponent(__VLS_226, new __VLS_226({
    span: (12),
}));
var __VLS_228 = __VLS_227.apply(void 0, __spreadArray([{
        span: (12),
    }], __VLS_functionalComponentArgsRest(__VLS_227), false));
var __VLS_230 = __VLS_229.slots.default;
var __VLS_231 = {}.ElFormItem;
/** @type {[typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, ]} */ ;
// @ts-ignore
ElFormItem;
// @ts-ignore
var __VLS_232 = __VLS_asFunctionalComponent(__VLS_231, new __VLS_231({
    label: "备注",
    prop: "remark",
}));
var __VLS_233 = __VLS_232.apply(void 0, __spreadArray([{
        label: "备注",
        prop: "remark",
    }], __VLS_functionalComponentArgsRest(__VLS_232), false));
var __VLS_235 = __VLS_234.slots.default;
var __VLS_236 = {}.ElInput;
/** @type {[typeof __VLS_components.ElInput, typeof __VLS_components.elInput, ]} */ ;
// @ts-ignore
ElInput;
// @ts-ignore
var __VLS_237 = __VLS_asFunctionalComponent(__VLS_236, new __VLS_236({
    modelValue: (__VLS_ctx.formData.remark),
    placeholder: "输入备注",
}));
var __VLS_238 = __VLS_237.apply(void 0, __spreadArray([{
        modelValue: (__VLS_ctx.formData.remark),
        placeholder: "输入备注",
    }], __VLS_functionalComponentArgsRest(__VLS_237), false));
// @ts-ignore
[formData,];
var __VLS_234;
var __VLS_229;
var __VLS_199;
var __VLS_241 = {}.ElFormItem;
/** @type {[typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, ]} */ ;
// @ts-ignore
ElFormItem;
// @ts-ignore
var __VLS_242 = __VLS_asFunctionalComponent(__VLS_241, new __VLS_241({
    label: "入库产品明细",
}));
var __VLS_243 = __VLS_242.apply(void 0, __spreadArray([{
        label: "入库产品明细",
    }], __VLS_functionalComponentArgsRest(__VLS_242), false));
var __VLS_245 = __VLS_244.slots.default;
var __VLS_246 = {}.ElTable;
/** @type {[typeof __VLS_components.ElTable, typeof __VLS_components.elTable, typeof __VLS_components.ElTable, typeof __VLS_components.elTable, ]} */ ;
// @ts-ignore
ElTable;
// @ts-ignore
var __VLS_247 = __VLS_asFunctionalComponent(__VLS_246, new __VLS_246(__assign({ data: (__VLS_ctx.formData.productDetails), border: true, stripe: true }, { class: "detail-table" })));
var __VLS_248 = __VLS_247.apply(void 0, __spreadArray([__assign({ data: (__VLS_ctx.formData.productDetails), border: true, stripe: true }, { class: "detail-table" })], __VLS_functionalComponentArgsRest(__VLS_247), false));
var __VLS_250 = __VLS_249.slots.default;
// @ts-ignore
[formData,];
var __VLS_251 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_252 = __VLS_asFunctionalComponent(__VLS_251, new __VLS_251({
    prop: "productName",
    label: "产品名称",
}));
var __VLS_253 = __VLS_252.apply(void 0, __spreadArray([{
        prop: "productName",
        label: "产品名称",
    }], __VLS_functionalComponentArgsRest(__VLS_252), false));
var __VLS_256 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_257 = __VLS_asFunctionalComponent(__VLS_256, new __VLS_256({
    prop: "productNo",
    label: "产品编号",
}));
var __VLS_258 = __VLS_257.apply(void 0, __spreadArray([{
        prop: "productNo",
        label: "产品编号",
    }], __VLS_functionalComponentArgsRest(__VLS_257), false));
var __VLS_261 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_262 = __VLS_asFunctionalComponent(__VLS_261, new __VLS_261({
    prop: "quantity",
    label: "数量",
}));
var __VLS_263 = __VLS_262.apply(void 0, __spreadArray([{
        prop: "quantity",
        label: "数量",
    }], __VLS_functionalComponentArgsRest(__VLS_262), false));
var __VLS_265 = __VLS_264.slots.default;
{
    var __VLS_266 = __VLS_264.slots.default;
    var scope = __VLS_getSlotParameters(__VLS_266)[0];
    var __VLS_267 = {}.ElInputNumber;
    /** @type {[typeof __VLS_components.ElInputNumber, typeof __VLS_components.elInputNumber, ]} */ ;
    // @ts-ignore
    ElInputNumber;
    // @ts-ignore
    var __VLS_268 = __VLS_asFunctionalComponent(__VLS_267, new __VLS_267({
        modelValue: (scope.row.quantity),
        min: (1),
        size: "small",
    }));
    var __VLS_269 = __VLS_268.apply(void 0, __spreadArray([{
            modelValue: (scope.row.quantity),
            min: (1),
            size: "small",
        }], __VLS_functionalComponentArgsRest(__VLS_268), false));
}
var __VLS_264;
var __VLS_272 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_273 = __VLS_asFunctionalComponent(__VLS_272, new __VLS_272({
    label: "操作",
}));
var __VLS_274 = __VLS_273.apply(void 0, __spreadArray([{
        label: "操作",
    }], __VLS_functionalComponentArgsRest(__VLS_273), false));
var __VLS_276 = __VLS_275.slots.default;
{
    var __VLS_277 = __VLS_275.slots.default;
    var scope_2 = __VLS_getSlotParameters(__VLS_277)[0];
    var __VLS_278 = {}.ElButton;
    /** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
    // @ts-ignore
    ElButton;
    // @ts-ignore
    var __VLS_279 = __VLS_asFunctionalComponent(__VLS_278, new __VLS_278(__assign({ 'onClick': {} }, { type: "danger", size: "small" })));
    var __VLS_280 = __VLS_279.apply(void 0, __spreadArray([__assign({ 'onClick': {} }, { type: "danger", size: "small" })], __VLS_functionalComponentArgsRest(__VLS_279), false));
    var __VLS_282 = void 0;
    var __VLS_283 = void 0;
    var __VLS_284 = ({ click: {} },
        { onClick: function () {
                var _a = [];
                for (var _i = 0; _i < arguments.length; _i++) {
                    _a[_i] = arguments[_i];
                }
                var $event = _a[0];
                __VLS_ctx.removeProduct(scope_2.$index);
                // @ts-ignore
                [removeProduct,];
            } });
    var __VLS_285 = __VLS_281.slots.default;
    var __VLS_281;
}
var __VLS_275;
var __VLS_249;
var __VLS_286 = {}.ElButton;
/** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
// @ts-ignore
ElButton;
// @ts-ignore
var __VLS_287 = __VLS_asFunctionalComponent(__VLS_286, new __VLS_286(__assign(__assign({ 'onClick': {} }, { type: "text" }), { class: "add-product-btn" })));
var __VLS_288 = __VLS_287.apply(void 0, __spreadArray([__assign(__assign({ 'onClick': {} }, { type: "text" }), { class: "add-product-btn" })], __VLS_functionalComponentArgsRest(__VLS_287), false));
var __VLS_290;
var __VLS_291;
var __VLS_292 = ({ click: {} },
    { onClick: (__VLS_ctx.addProduct) });
var __VLS_293 = __VLS_289.slots.default;
// @ts-ignore
[addProduct,];
var __VLS_289;
var __VLS_244;
var __VLS_117;
{
    var __VLS_294 = __VLS_112.slots.footer;
    var __VLS_295 = {}.ElButton;
    /** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
    // @ts-ignore
    ElButton;
    // @ts-ignore
    var __VLS_296 = __VLS_asFunctionalComponent(__VLS_295, new __VLS_295(__assign({ 'onClick': {} })));
    var __VLS_297 = __VLS_296.apply(void 0, __spreadArray([__assign({ 'onClick': {} })], __VLS_functionalComponentArgsRest(__VLS_296), false));
    var __VLS_299 = void 0;
    var __VLS_300 = void 0;
    var __VLS_301 = ({ click: {} },
        { onClick: (__VLS_ctx.handleDialogClose) });
    var __VLS_302 = __VLS_298.slots.default;
    // @ts-ignore
    [handleDialogClose,];
    var __VLS_298;
    var __VLS_303 = {}.ElButton;
    /** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
    // @ts-ignore
    ElButton;
    // @ts-ignore
    var __VLS_304 = __VLS_asFunctionalComponent(__VLS_303, new __VLS_303(__assign({ 'onClick': {} }, { type: "primary" })));
    var __VLS_305 = __VLS_304.apply(void 0, __spreadArray([__assign({ 'onClick': {} }, { type: "primary" })], __VLS_functionalComponentArgsRest(__VLS_304), false));
    var __VLS_307 = void 0;
    var __VLS_308 = void 0;
    var __VLS_309 = ({ click: {} },
        { onClick: (__VLS_ctx.handleSaveOrder) });
    var __VLS_310 = __VLS_306.slots.default;
    // @ts-ignore
    [handleSaveOrder,];
    var __VLS_306;
}
var __VLS_112;
var __VLS_311 = {}.ElDialog;
/** @type {[typeof __VLS_components.ElDialog, typeof __VLS_components.elDialog, typeof __VLS_components.ElDialog, typeof __VLS_components.elDialog, ]} */ ;
// @ts-ignore
ElDialog;
// @ts-ignore
var __VLS_312 = __VLS_asFunctionalComponent(__VLS_311, new __VLS_311({
    modelValue: (__VLS_ctx.detailVisible),
    title: "入库单明细",
    width: "800px",
}));
var __VLS_313 = __VLS_312.apply(void 0, __spreadArray([{
        modelValue: (__VLS_ctx.detailVisible),
        title: "入库单明细",
        width: "800px",
    }], __VLS_functionalComponentArgsRest(__VLS_312), false));
var __VLS_315 = __VLS_314.slots.default;
// @ts-ignore
[detailVisible,];
var __VLS_316 = {}.ElDescriptions;
/** @type {[typeof __VLS_components.ElDescriptions, typeof __VLS_components.elDescriptions, typeof __VLS_components.ElDescriptions, typeof __VLS_components.elDescriptions, ]} */ ;
// @ts-ignore
ElDescriptions;
// @ts-ignore
var __VLS_317 = __VLS_asFunctionalComponent(__VLS_316, new __VLS_316({
    column: "2",
    border: true,
}));
var __VLS_318 = __VLS_317.apply(void 0, __spreadArray([{
        column: "2",
        border: true,
    }], __VLS_functionalComponentArgsRest(__VLS_317), false));
var __VLS_320 = __VLS_319.slots.default;
var __VLS_321 = {}.ElDescriptionsItem;
/** @type {[typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, ]} */ ;
// @ts-ignore
ElDescriptionsItem;
// @ts-ignore
var __VLS_322 = __VLS_asFunctionalComponent(__VLS_321, new __VLS_321({
    label: "入库时间",
}));
var __VLS_323 = __VLS_322.apply(void 0, __spreadArray([{
        label: "入库时间",
    }], __VLS_functionalComponentArgsRest(__VLS_322), false));
var __VLS_325 = __VLS_324.slots.default;
(__VLS_ctx.currentOrder.time);
// @ts-ignore
[currentOrder,];
var __VLS_324;
var __VLS_326 = {}.ElDescriptionsItem;
/** @type {[typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, ]} */ ;
// @ts-ignore
ElDescriptionsItem;
// @ts-ignore
var __VLS_327 = __VLS_asFunctionalComponent(__VLS_326, new __VLS_326({
    label: "入库单编号",
}));
var __VLS_328 = __VLS_327.apply(void 0, __spreadArray([{
        label: "入库单编号",
    }], __VLS_functionalComponentArgsRest(__VLS_327), false));
var __VLS_330 = __VLS_329.slots.default;
(__VLS_ctx.currentOrder.orderNo);
// @ts-ignore
[currentOrder,];
var __VLS_329;
var __VLS_331 = {}.ElDescriptionsItem;
/** @type {[typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, ]} */ ;
// @ts-ignore
ElDescriptionsItem;
// @ts-ignore
var __VLS_332 = __VLS_asFunctionalComponent(__VLS_331, new __VLS_331({
    label: "仓库",
}));
var __VLS_333 = __VLS_332.apply(void 0, __spreadArray([{
        label: "仓库",
    }], __VLS_functionalComponentArgsRest(__VLS_332), false));
var __VLS_335 = __VLS_334.slots.default;
(__VLS_ctx.currentOrder.warehouse);
// @ts-ignore
[currentOrder,];
var __VLS_334;
var __VLS_336 = {}.ElDescriptionsItem;
/** @type {[typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, ]} */ ;
// @ts-ignore
ElDescriptionsItem;
// @ts-ignore
var __VLS_337 = __VLS_asFunctionalComponent(__VLS_336, new __VLS_336({
    label: "操作人",
}));
var __VLS_338 = __VLS_337.apply(void 0, __spreadArray([{
        label: "操作人",
    }], __VLS_functionalComponentArgsRest(__VLS_337), false));
var __VLS_340 = __VLS_339.slots.default;
(__VLS_ctx.currentOrder.operator);
// @ts-ignore
[currentOrder,];
var __VLS_339;
var __VLS_341 = {}.ElDescriptionsItem;
/** @type {[typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, ]} */ ;
// @ts-ignore
ElDescriptionsItem;
// @ts-ignore
var __VLS_342 = __VLS_asFunctionalComponent(__VLS_341, new __VLS_341({
    label: "入库状态",
}));
var __VLS_343 = __VLS_342.apply(void 0, __spreadArray([{
        label: "入库状态",
    }], __VLS_functionalComponentArgsRest(__VLS_342), false));
var __VLS_345 = __VLS_344.slots.default;
var __VLS_346 = {}.ElTag;
/** @type {[typeof __VLS_components.ElTag, typeof __VLS_components.elTag, typeof __VLS_components.ElTag, typeof __VLS_components.elTag, ]} */ ;
// @ts-ignore
ElTag;
// @ts-ignore
var __VLS_347 = __VLS_asFunctionalComponent(__VLS_346, new __VLS_346({
    type: (__VLS_ctx.currentOrder.status === '已完成' ? 'success' : 'info'),
}));
var __VLS_348 = __VLS_347.apply(void 0, __spreadArray([{
        type: (__VLS_ctx.currentOrder.status === '已完成' ? 'success' : 'info'),
    }], __VLS_functionalComponentArgsRest(__VLS_347), false));
var __VLS_350 = __VLS_349.slots.default;
// @ts-ignore
[currentOrder,];
(__VLS_ctx.currentOrder.status);
// @ts-ignore
[currentOrder,];
var __VLS_349;
var __VLS_344;
var __VLS_351 = {}.ElDescriptionsItem;
/** @type {[typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, ]} */ ;
// @ts-ignore
ElDescriptionsItem;
// @ts-ignore
var __VLS_352 = __VLS_asFunctionalComponent(__VLS_351, new __VLS_351({
    label: "备注",
}));
var __VLS_353 = __VLS_352.apply(void 0, __spreadArray([{
        label: "备注",
    }], __VLS_functionalComponentArgsRest(__VLS_352), false));
var __VLS_355 = __VLS_354.slots.default;
(__VLS_ctx.currentOrder.remark || '无');
// @ts-ignore
[currentOrder,];
var __VLS_354;
var __VLS_319;
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "detail-table-container" }));
__VLS_asFunctionalElement(__VLS_elements.h3, __VLS_elements.h3)(__assign({ class: "detail-table-title" }));
var __VLS_356 = {}.ElTable;
/** @type {[typeof __VLS_components.ElTable, typeof __VLS_components.elTable, typeof __VLS_components.ElTable, typeof __VLS_components.elTable, ]} */ ;
// @ts-ignore
ElTable;
// @ts-ignore
var __VLS_357 = __VLS_asFunctionalComponent(__VLS_356, new __VLS_356(__assign({ data: (__VLS_ctx.currentOrder.productDetails), border: true, stripe: true }, { class: "detail-table" })));
var __VLS_358 = __VLS_357.apply(void 0, __spreadArray([__assign({ data: (__VLS_ctx.currentOrder.productDetails), border: true, stripe: true }, { class: "detail-table" })], __VLS_functionalComponentArgsRest(__VLS_357), false));
var __VLS_360 = __VLS_359.slots.default;
// @ts-ignore
[currentOrder,];
var __VLS_361 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_362 = __VLS_asFunctionalComponent(__VLS_361, new __VLS_361({
    prop: "productName",
    label: "产品名称",
}));
var __VLS_363 = __VLS_362.apply(void 0, __spreadArray([{
        prop: "productName",
        label: "产品名称",
    }], __VLS_functionalComponentArgsRest(__VLS_362), false));
var __VLS_366 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_367 = __VLS_asFunctionalComponent(__VLS_366, new __VLS_366({
    prop: "productNo",
    label: "产品编号",
}));
var __VLS_368 = __VLS_367.apply(void 0, __spreadArray([{
        prop: "productNo",
        label: "产品编号",
    }], __VLS_functionalComponentArgsRest(__VLS_367), false));
var __VLS_371 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_372 = __VLS_asFunctionalComponent(__VLS_371, new __VLS_371({
    prop: "quantity",
    label: "数量",
}));
var __VLS_373 = __VLS_372.apply(void 0, __spreadArray([{
        prop: "quantity",
        label: "数量",
    }], __VLS_functionalComponentArgsRest(__VLS_372), false));
var __VLS_359;
var __VLS_314;
var __VLS_376 = {}.ElDialog;
/** @type {[typeof __VLS_components.ElDialog, typeof __VLS_components.elDialog, typeof __VLS_components.ElDialog, typeof __VLS_components.elDialog, ]} */ ;
// @ts-ignore
ElDialog;
// @ts-ignore
var __VLS_377 = __VLS_asFunctionalComponent(__VLS_376, new __VLS_376({
    modelValue: (__VLS_ctx.deleteConfirmVisible),
    title: "确认删除",
    width: "300px",
}));
var __VLS_378 = __VLS_377.apply(void 0, __spreadArray([{
        modelValue: (__VLS_ctx.deleteConfirmVisible),
        title: "确认删除",
        width: "300px",
    }], __VLS_functionalComponentArgsRest(__VLS_377), false));
var __VLS_380 = __VLS_379.slots.default;
// @ts-ignore
[deleteConfirmVisible,];
__VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({});
{
    var __VLS_381 = __VLS_379.slots.footer;
    var __VLS_382 = {}.ElButton;
    /** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
    // @ts-ignore
    ElButton;
    // @ts-ignore
    var __VLS_383 = __VLS_asFunctionalComponent(__VLS_382, new __VLS_382(__assign({ 'onClick': {} })));
    var __VLS_384 = __VLS_383.apply(void 0, __spreadArray([__assign({ 'onClick': {} })], __VLS_functionalComponentArgsRest(__VLS_383), false));
    var __VLS_386 = void 0;
    var __VLS_387 = void 0;
    var __VLS_388 = ({ click: {} },
        { onClick: function () {
                var _a = [];
                for (var _i = 0; _i < arguments.length; _i++) {
                    _a[_i] = arguments[_i];
                }
                var $event = _a[0];
                __VLS_ctx.deleteConfirmVisible = false;
                // @ts-ignore
                [deleteConfirmVisible,];
            } });
    var __VLS_389 = __VLS_385.slots.default;
    var __VLS_385;
    var __VLS_390 = {}.ElButton;
    /** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
    // @ts-ignore
    ElButton;
    // @ts-ignore
    var __VLS_391 = __VLS_asFunctionalComponent(__VLS_390, new __VLS_390(__assign({ 'onClick': {} }, { type: "danger" })));
    var __VLS_392 = __VLS_391.apply(void 0, __spreadArray([__assign({ 'onClick': {} }, { type: "danger" })], __VLS_functionalComponentArgsRest(__VLS_391), false));
    var __VLS_394 = void 0;
    var __VLS_395 = void 0;
    var __VLS_396 = ({ click: {} },
        { onClick: (__VLS_ctx.confirmDelete) });
    var __VLS_397 = __VLS_393.slots.default;
    // @ts-ignore
    [confirmDelete,];
    var __VLS_393;
}
var __VLS_379;
/** @type {__VLS_StyleScopedClasses['storage-order-page']} */ ;
/** @type {__VLS_StyleScopedClasses['page-header']} */ ;
/** @type {__VLS_StyleScopedClasses['search-action-bar']} */ ;
/** @type {__VLS_StyleScopedClasses['search-input']} */ ;
/** @type {__VLS_StyleScopedClasses['order-table']} */ ;
/** @type {__VLS_StyleScopedClasses['pagination']} */ ;
/** @type {__VLS_StyleScopedClasses['total-info']} */ ;
/** @type {__VLS_StyleScopedClasses['order-form']} */ ;
/** @type {__VLS_StyleScopedClasses['detail-table']} */ ;
/** @type {__VLS_StyleScopedClasses['add-product-btn']} */ ;
/** @type {__VLS_StyleScopedClasses['detail-table-container']} */ ;
/** @type {__VLS_StyleScopedClasses['detail-table-title']} */ ;
/** @type {__VLS_StyleScopedClasses['detail-table']} */ ;
// @ts-ignore
var __VLS_119 = __VLS_118;
var __VLS_export = (await Promise.resolve().then(function () { return require('vue'); })).defineComponent({});
exports.default = {};
